package org.hgvc.webapp.ets.spring.service;

import java.io.Serializable;
import java.util.List;

import org.hgvc.webapp.ets.bo.Agent;
import org.hgvc.webapp.ets.bo.Voucher;
import org.jocsb.base.bo.Role;
import org.jocsb.base.bo.User;
import org.jocsb.base.exception.BaseException;


public interface AdminService extends Serializable{
	public List<User> getUserList()throws BaseException;
	public void createUser(User user,User createdUser,String roleId)throws BaseException;
	public List<Role> getRoleList()throws BaseException;
	public void deActiveUser(User user,User actionUser,boolean active) throws BaseException;
	public void editUser(User user,User createdUser,String roleId)throws BaseException;
	public User createNewUserWithRole(String username,String password,Role role,User createdBy)throws Exception;
	public void replaceUserRoleWithNewRole(User user,Role newRole,User createdBy )throws Exception;
	
	public String getDocumentNo(String type)throws BaseException;
	public String getPreDocumentNo(String type)throws BaseException;
	public void changeUserPassword(User user)throws BaseException;
}
